//
//  BlockGenerator.h
//  AvoidTheBlocks
//
//  Created by hoangtx on 6/18/13.
//
//

#ifndef AvoidTheBlocks_BlockGenerator_h
#define AvoidTheBlocks_BlockGenerator_h

#include "cocos2d.h"
#include "OnStageBlockManager.h"
using namespace cocos2d;

class BlockGenerator:public CCNode{
   
    
    
    public:
    CCLayer* mainLayer;
    OnStageBlockManager* blockManager;
    
    
    void dropBlock();
    
    void callForADrop(CCObject* sender);
    int getRandomIndexExceptThoseThatAreFull();
    
    virtual bool init();
    CREATE_FUNC(BlockGenerator);
};


#endif
